import {defineStore} from 'pinia';

export const useMainStore = defineStore('main', {
    state: () => ({
        count: '',
    }),
    getters: {
        doubleCount: (state) => state.count * 2,
    },
    actions: {
        changeCount(props) {
            this.count = props;
        }
    },
})